package com.fh.modules.oms.job;

import com.fh.common.util.SpringContextUtils;
import com.fh.modules.oms.service.IOmsOrderWechatService;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * @Description:
 * @author： qiujunda
 * @date： 2020/1/12 19:51
 */
@Slf4j
public class OrderCancelJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info("begin---------------------cancel order");
        IOmsOrderWechatService omsOrderWechatService= (IOmsOrderWechatService) SpringContextUtils.getBean("omsOrderWechatServiceImpl");
//        omsOrderWechatService.autoCancelOrder();
        log.info("end---------------------cancel order");
    }
}
